home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / rettig.arc / TRSOURCE.EXE / _TR_STRL.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  356b  |  24 lines

  1. /*********
  2. *
  3. * _TR_STRL.C
  4. *
  5. * by Tom Rettig
  6. *
  7. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  8. *
  9. * Syntax: _tr_strlen(cp)
  10. * Return: int length of *cp
  11. * Note  : does not count null terminator
  12. ********/
  13.  
  14. #include "trlib.h"
  15.  
  16. _tr_strlen(instr)
  17. char *instr;
  18. {
  19.    int i;
  20.    for (i=0; instr[i]; i++)
  21.    ;
  22.    return(i);
  23. }
  24.